package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.ProductType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductTypeMapper {
    int deleteByPrimaryKey(String id);

    int insert(ProductType record);

    int insertSelective(ProductType record);

    ProductType selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ProductType record);

    int updateByPrimaryKey(ProductType record);

    List<ProductType> getTypeListById(int parentId);

    List<ProductType> getTypeListByIp(int parentId, String proColumn);

    List<ProductType> selectByPcAndName(String proColumn, String name);

    ProductType selectByName(String productTypeName);
}